
#ifndef  BREAKPOINTFILE_H
#define  BREAKPOINTFILE_H

#include <string>
#include "IBreakPoint.h"

class IPersist;

// open-close per get || set  ;  binary format of value in file
// extend -> string format save to file FileStreamCharPersist
// extend -> open and get || set many times then close
class BreakPointFile : public IBreakPoint{
public:
    BreakPointFile(const std::string & filePath);
    virtual ~BreakPointFile();

    const long long get() const override;
    void set(const long long seqNo) override;
    void add(const long long step) override;

private:
    IPersist * imp;
};

#endif   /* BREAKPOINTFILE_H */
